import request from "../utils/request"

export const getAllEmpApi=(name,gender,begin,end,page,pageSize)=>
  request.get(`/emps?&name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)
export const saveEmpApi=(emp)=>request.post('/emps',emp)
export const getEmpByIdApi=(id)=>request.get(`/emps/${id}`)
export const updateEmpApi=(emp)=>request.put('/emps',emp)
export const deleteEmpApi=(id)=>request.delete(`/emps?ids=${id}`)

